home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Programming Stuff / QuickDraw™ GX Libraries / CIncludes / font menu library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  2.9 KB  |  86 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        font menu library.h
  3.  
  4.     Copyright:    © 1984-1995 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12.     #ifndef fontMenuLibraryIncludes
  13. #define fontMenuLibraryIncludes
  14.  
  15.     #ifndef __Menus__
  16. #include <Menus.h>
  17. /*    #include <Quickdraw.h>                                        */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22. /*        #include <QuickdrawText.h>                                */
  23. /*            #include <IntlResources.h>                            */
  24.     #endif
  25.  
  26.     #ifndef fontTypesIncludes
  27. #include "font types.h"
  28. /*    #include "math types.h"                                        */
  29.     #endif
  30.  
  31.     #ifndef graphicsTypesIncludes
  32. #include "graphics types.h"
  33.     #endif
  34.  
  35.     #ifndef layoutRoutinesIncludes
  36. #include "layout routines.h"
  37. /*    #include "layout types.h"                                    */
  38. /*    #include "graphics linkage.h"                                */
  39.     #endif
  40.  
  41.     #ifndef fontRoutinesIncludes
  42. #include "font routines.h"
  43. /*    #include "scaler types.h"                                    */
  44. /*        #include "sfnt types.h"                                    */
  45.     #endif
  46.  
  47.     #ifdef __cplusplus
  48. extern "C" {
  49.     #endif
  50.  
  51. enum fontMenuAttributes {
  52.     noInstancesFontMenu            = 1
  53. };
  54.  
  55. typedef long fontMenuAttribute;
  56.  
  57. typedef boolean (*fontFilterProc)(gxFont fontID);
  58.  
  59. extern void SortMenu(MenuHandle menu);
  60. extern void DeleteMenuItems(MenuHandle menuH);
  61. extern long FontMenu(MenuHandle menu);
  62. extern long FontPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  63. extern long FontFamilyMenu(MenuHandle menu);
  64. extern long FontFamilyPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  65. extern MenuHandle FontStyleMenu(short menuID, gxFont family);
  66. extern short HierFontMenu(MenuHandle theMenu, short firstHierMenuID, fontFilterProc proc, fontMenuAttribute attr);
  67. extern gxFont DoHierFontMenuCommand(long menuResult, short hierFontMenuID, long *instanceIndex);
  68. extern boolean DoHierFontMenuCommandStyle(long menuResult, short hierFontMenuID, gxStyle aStyle, long matchInfo);
  69. extern short DoHierFontMenuCommandShape(long menuResult, short hierFontMenuID, gxShape aShape);
  70. extern long FontToQD(gxFont fontID, long *styleBits);
  71. extern long GetMenuRunFeatures(MenuHandle menu, gxFont fontID, gxRunFeature feature[]);
  72. extern void SetMenuRunFeatures(MenuHandle menu, gxFont fontID, long count, const gxRunFeature feature[]);
  73. extern void FontFeatureMenu(MenuHandle menu, gxFont fontID);
  74. extern void ToggleFeatureMenuItem(MenuHandle menuH, gxFont fontID, long item);
  75. extern void ToggleFeatureMenuFeature(MenuHandle menuH, gxFont fontID, gxRunFeature feature);
  76. extern void StyleFeatureMenu(MenuHandle menuH, const gxStyle style);
  77. extern long GetDefaultFontFeatures(gxFont fontID, gxRunFeature features[]);
  78. extern void SetShapeDefaultFeatures(gxShape dst, gxFont fontID);
  79. extern void SetStyleDefaultFeatures(gxStyle dst, gxFont fontID);
  80.     #ifdef __cplusplus
  81. }
  82.     #endif
  83.  
  84. #endif
  85.  
  86.